package com.training.food.Mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.training.food.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
@Mapper
public interface UserMapper extends BaseMapper<User>{
     User findByUsername(String username);
     User findUser(String username, String password);
     void chengeNoLogin(String username,boolean noLogin);
     int insert(User user);
     void update(User user);
     void freeze(User user);
     List<User>getUsers();

}
